package com.syh.emissionservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.syh.bscommon.pojo.Result;
import com.syh.emissionservice.pojo.CarbonDataWithDay;
import com.syh.emissionservice.pojo.CarbonDataWithMonth;
import com.syh.emissionservice.pojo.CarbonEmissions;
import com.syh.emissionservice.pojo.DataIndex;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author syh
 * @since 2024-07-01
 */
public interface ICarbonEmissionsService extends IService<CarbonEmissions> {

    List<CarbonDataWithMonth> getEcharts1(Integer companyId);

    List<CarbonDataWithDay> getEcharts2(Integer companyId);

    List<CarbonEmissions> getdata(Integer companyId);

    List<CarbonEmissions> listByStatus();

    DataIndex getTPrat(Integer companyId);

    Result add(CarbonEmissions carbonEmissions);

    Result updateCarbonEmissions(CarbonEmissions carbonEmissions);

    Result delete(Integer id);

    Result update_admin(CarbonEmissions carbonEmissions);
}
